package com.zhihesj.anan.system.service;

import com.zhihesj.anan.system.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhihesj.anan.system.entity.RoleDept;
import com.zhihesj.anan.system.entity.RoleMenu;
import com.zhihesj.anan.system.entity.UserRole;

import java.util.List;

/**
 * <p>
 * 角色信息表 服务类
 * </p>
 *
 * @author anan
 * @since 2020-07-22
 */
public interface RoleService extends IService<Role> {

    List<Role> getRolesByUserid(Long userId);

    List<RoleMenu> getMenuList(Long roleId);

    List<UserRole> getUserList(Long roleId);

    List<RoleDept> getDeptList(Long roleId);

    List<Role> getRolesByIdentifier(String identifier);

}
